<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选项卡</title>
    <style>
        #div1 input {background:#CCC;}
        #div1 div {width:200px; height:200px; background:#CCC; display:none;}
        #div1 .active {background:yellow;}
        #div1 .kin {background:red;}
    </style>
</head>
<body>
    <div id="div1">
        <input type="button" value="txt1" class="active" />
        <input type="button" value="txt2" />
        <input type="button" value="txt3" />
        <div style="display:block;">txt1content</div>
        <div>txt2content</div>
        <div>txt3content</div>
    </div>
    <SCRipt src="./index.js"></SCRipt>
</body>
</html>